<%@ include file="/WEB-INF/common/taglibs.jsp"%>
<h2><c:choose>
	<c:when test="${topic.new}">Add Topic</c:when>
	<c:otherwise>Update Topic:${topic.name}</c:otherwise>
</c:choose></h2>

<form:form modelAttribute="topic">
	<table class="editTable">
		<tr>
			<th>Name: <form:errors path="name" cssClass="errors" /> <br />
			<form:input path="name" size="40" maxlength="128" /></th>
		</tr>
		<tr>
			<td><c:choose>
				<c:when test="${topic.new}">
					<p class="submit"><input type="submit" value="Add" />&nbsp; <input
						type="reset" value="Reset" /></p>
				</c:when>
				<c:otherwise>
					<p class="submit"><input type="submit" value="Update" />&nbsp;
					<input type="reset" value="Reset" /></p>
				</c:otherwise>
			</c:choose></td>
		</tr>
	</table>
</form:form>
